/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.account;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.account.SysUser;

/**
 * @author CSJ (email:raulcsj@163.com)
 * @since 2012-11-27
 */
public interface SysUserService {
    /****************************************
     * Insert a instace of SysUser
     ****************************************/
    void insert(SysUser sysuser) throws Exception;

    /****************************************
     * Insert instaces of SysUser
     ****************************************/
    void batchInsert(SysUser sysuser) throws Exception;

    /****************************************
     * Update a instace of SysUser
     ****************************************/
    void update(SysUser sysuser) throws Exception;

    /****************************************
     * Delete a instace of SysUser
     ****************************************/
    void delete(SysUser sysuser) throws Exception;

    /****************************************
     * Delete instaces of SysUser
     ****************************************/
    void batchDelete(SysUser sysuser) throws Exception;

    /****************************************
     * Query instaces of SysUser
     ****************************************/
    List<BaseModel> queryAsList(SysUser sysuser) throws Exception;

    /****************************************
     * Query tree of SysUser
     ****************************************/
    List<BaseModel> queryUserAsTree(SysUser sysuser) throws Exception;

    /****************************************
     * Query a instaces of SysUser
     ****************************************/
    BaseModel queryAsObject(SysUser sysuser) throws Exception;
}
